﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;


namespace CreaImagenes
{
    class Program
    {
        static void Main(string[] args)
        {
            for (; ; )
            {
                Bitmap bitmap = new Bitmap(320, 240);

                Graphics g = Graphics.FromImage(bitmap);

                g.DrawString(System.DateTime.Now.ToString(),
                    new Font("Arial", 12),
                    new SolidBrush(Color.Lime),
                    new PointF(50, 50)
                );

                bitmap.Save(@"C:\Users\alejandro\Repo\current.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);

                bitmap.Dispose();
                g.Dispose();

                System.Threading.Thread.Sleep(1000);
            }
        }
    }
}
